<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
				xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
				xmlns:f="http://xmlns.jcp.org/jsf/core"
				xmlns:h="http://xmlns.jcp.org/jsf/html"
				xmlns:p="http://primefaces.org/ui"
				template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{codeDicList.firstResult}"></f:viewParam>
	   	
	   	<f:viewParam name="codeName" value="#{codeDicList.codeName}"></f:viewParam>
	   	<f:viewParam name="codeValue" value="#{codeDicList.codeValue}"></f:viewParam>
	   	<f:viewParam name="codeType" value="#{codeDicList.codeType}"></f:viewParam>
	   	<f:viewParam name="moduleName" value="代码表管理"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
		<h:form id="searchForm">
			<div class="conditionQueryDiv">
				<p:outputLabel value="代码名称："></p:outputLabel>				
				<p:inputText value="#{codeDicList.codeName}"></p:inputText>
				<p:outputLabel value="代码值："></p:outputLabel>				
				<p:inputText value="#{codeDicList.codeValue}"></p:inputText>
				<p:outputLabel value="代码类型："></p:outputLabel>
				<p:inputText value="#{codeDicList.codeType}"></p:inputText>
				<div class="actionButtons">
					<p:commandButton value="查询" ajax="false"   action="CodeDicList.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
					<p:button value="重置" outcome="CodeDicList.xhtml"></p:button>
				</div>		
				<div class="clearbt"></div>
			</div>
			<p:panel id="searchResult">
				<f:facet name="header">代码表管理</f:facet>
				
				<div class="operationDiv">
					<p:button value="新增"   outcome="CodeDicEdit.xhtml" ></p:button>
				</div>
				<p:dataTable value="#{codeDicList.resultList}" var="_codeDic"
						emptyMessage="暂无记录">
					
					<p:column sortBy="#{_codeDic.codeName}">
						<f:facet name="header">代码名称</f:facet>
						#{_codeDic.codeName}
					</p:column>
					
					<p:column sortBy="#{_codeDic.codeValue}">
						<f:facet name="header">代码值</f:facet>
						#{_codeDic.codeValue}
					</p:column>
					
					<p:column sortBy="#{_codeDic.codeType}">
						<f:facet name="header">代码类别</f:facet>
						#{_codeDic.codeType}
					</p:column>
					<p:column>
						<f:facet name="header">排序</f:facet>
						#{_codeDic.sort}
					</p:column>
					<p:column style="text-align: center;width:100px;">
						<f:facet name="header">操作</f:facet>
						<p:button value="编辑" outcome="CodeDicEdit.xhtml">
							<f:param name="codeDicId" value="#{_codeDic.id}"></f:param>
						</p:button>
					</p:column>
				</p:dataTable>
			</p:panel>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{codeDicList}" />
			</ui:include>
			
		</h:form>
		
   	</ui:define>
</ui:composition>
